export const searchConfig = {
  confirmButton: {
    text: '搜索'
  },
  cancelButton: {
    text: '重置'
  },
  formConfig: {
    inline: true
  },
  formItems: [
    {
      prop: 'account',
      label: '账号'
    },
    {
      prop: 'nickname',
      label: '昵称'
    },
    {
      prop: 'signature',
      label: '描述'
    }
  ]
}
// 表格配置
export const tableConfig = {
  search: true,
  headerBtn: [
    {
      type: 'add',
      label: '新增'
      // svg:''
    }
  ],
  tableConfig: {},
  tableColumns: [
    {
      prop: 'userNo',
      label: 'ID'
    },
    {
      prop: 'account',
      label: '账号'
    },
    {
      prop: 'nickname',
      label: '昵称'
    },
    {
      prop: 'img_url',
      label: '头像',
      isPic: true
    },
    {
      prop: 'userPhone',
      label: '电话'
    },
    {
      prop: 'vip',
      label: '会员等级',
      func({ vipGrade }) {
        return vipGrade.vipGrade
      }
    },
    {
      prop: 'city',
      label: '地区',
      isArea: true
    },
    {
      prop: 'sex',
      label: '性别',
      func({ sex }) {
        return sex ? '男' : '女'
      }
    },
    {
      prop: 'birthDay',
      label: '生日',
      isDate: 'date'
    },
    {
      prop: 'signature',
      label: '描述'
    },
    {
      prop: 'edit',
      label: '操作',
      editType: true
    }
  ],
  editType: [
    {
      type: 'edit',
      label: '编辑'
    },
    {
      type: 'delete',
      label: '删除'
    },
    {
      type: 'updateVip',
      label: '更新vip'
    }
  ]
}
//vip表单
export const vipConfig = {
  confirmButton: {
    text: '保存'
  },
  cancelButton: {
    text: '取消'
  },
  formConfig: {},
  formItems: [
    {
      prop: 'vip',
      label: 'vip状态',
      type: 'switch'
    },
    {
      prop: 'vipStartTime',
      label: '起始时间',
      slot:true
    },
    {
      prop: 'vipEndTime',
      label: '结束时间',
      slot: true
    }
  ]
}
